<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:rich="http://richfaces.org/rich"
	  xmlns:a4j="http://richfaces.org/a4j">
<h:head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>Demo application</title>
  <link rel="stylesheet" type="text/css" href="css/main.css"/>
</h:head>
<h:body>
  <rich:messages globalOnly="true"/>
  <h:form acceptcharset="UTF-8" enctype="application/x-www-form-urlencoded;charset=UTF-8">
  	<div class="center">
  	<h:panelGrid columns="3">
  		<h:outputLabel for="name" value="Név"/>
	  	<h:inputText id="name" value="#{submitNameBean.user.name}">
	  		<rich:validator/>
	  	</h:inputText>
	  	<rich:message for="name"/>
  	
  		<h:outputLabel for="emailAddress" value="E-mail cím"/>
	  	<h:inputText id="emailAddress" value="#{submitNameBean.user.mailAddress}">
	  		<rich:validator/>
	  	</h:inputText>
	  	<rich:message/>
  	
  	</h:panelGrid>
  	
    <p><h:commandButton value="Beküldöm" action="#{submitNameBean.submitEmailAddress}"/></p>
    </div>
  </h:form>
</h:body>
</html>
